const fs = require('fs');

// 读取文件
// let rw = fs.readFileSync('./座右铭.txt');
// 写入文件
// fs.writeFileSync('./座右铭-2.txt',rw);

// 流式读取
let rs = fs.createReadStream('./座右铭.txt');
let rw = fs.createWriteStream('座右铭-4.txt')
rs.on('data',chank => {
    rw.write(chank)
})

